package com.xdxc.model.dto;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import org.springframework.stereotype.Component;
import java.util.List;

@Data
@Component
public class QuestionDto {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long quId;
    private Integer quType;
    private String quTypeDictText;
    private String manual;
    private Integer answerOrder;
    private Double score;
    private String content;
    private String analysis;
    private String image;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long examId;

    private List<SubList> subList;
    public List<SubList> getSubList() {
        return subList;
    }

    public void setSubList(List<SubList> subList) {
        this.subList = subList;
    }

    // Inner class for SubList
    public class SubList {
        // Define fields for SubList here
    }
    @JsonSerialize(using = ToStringSerializer.class)
    private Long paperId;
    private List<AnswerDto> answerList;
    @JsonSerialize(using = ToStringSerializer.class)

    private Long checkId;


}
